package com.four.service.impl;

import com.four.dao.MiddleDao;
import com.four.pojo.Middle;
import com.four.service.IMiddleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author 于志豪
 * @create 2021-10-26 19:25
 */

@Service("middleServiceImpl")
public class MiddleServiceImpl implements IMiddleService {
    @Autowired
    @Qualifier("middleDao")
    private MiddleDao middleDao;

    @Override
    public int deleteMid(int pid) {
        return middleDao.deleteMid(pid);
    }

    @Override
    public int addMid(Middle middle) {
        return middleDao.addMid(middle);
    }
}
